//
//  NewUserViewController.h
//  ActiveDeck
//
//  Created by BigChicken on 4/10/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AD_Environment.h"

@interface NewUserViewController : UIViewController {
    IBOutlet UITextField *Txt_FirstName;
    IBOutlet UITextField *Txt_LastName;
    IBOutlet UITextField *Txt_Organization;
    IBOutlet UITextField *Txt_Email;
    IBOutlet UITextField *Txt_Password;
    IBOutlet UITextField *Txt_ConfimPass;
    
    IBOutlet UILabel *Lb_FirstName;
    IBOutlet UILabel *Lb_LastName;
    IBOutlet UILabel *Lb_Org;
    IBOutlet UILabel *Lb_Email;
    IBOutlet UILabel *Lb_Pass;
    IBOutlet UILabel *Lb_ConfirmP;
    IBOutlet UILabel *Lb_Result;

    BOOL createSuccess;
    
    AD_Environment *environment;
}

@property (nonatomic , retain) UILabel *Lb_Result;
@property (nonatomic , retain) UILabel *Lb_FirstName;
@property (nonatomic , retain) UILabel *Lb_LastName;
@property (nonatomic , retain) UILabel *Lb_Org;
@property (nonatomic , retain) UILabel *Lb_Email;
@property (nonatomic , retain) UILabel *Lb_Pass;
@property (nonatomic , retain) UILabel *Lb_ConfirmP;

@property (readwrite) BOOL createSuccess;
@property (nonatomic , retain) IBOutlet UITextField *Txt_FirstName;
@property (nonatomic , retain) IBOutlet UITextField *Txt_LastName;
@property (nonatomic , retain) IBOutlet UITextField *Txt_Organization;
@property (nonatomic , retain) IBOutlet UITextField *Txt_Email;
@property (nonatomic , retain) IBOutlet UITextField *Txt_Password;
@property (nonatomic , retain) IBOutlet UITextField *Txt_ConfimPass;
@property (nonatomic, retain) AD_Environment *environment;

-(IBAction) CancelReg;
-(IBAction) SubmitReg;
-(NSString *) BuildXMLAuth;
- (BOOL) validateEmail: (NSString *) candidate;
- (BOOL) regValidation;


@end
